package com.animal.bean;

import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class DailyBean {

	private String FileNumber;
	private String FileTitle;
	private String UserID;
	private String UserName;
	private String AnimalID;
	private Timestamp FillingDate;
	private String DailyDataTip;
	private String FileState;

	public String getFileNumber() {
		return FileNumber;
	}

	public void setFileNumber(String fileNumber) {
		FileNumber = fileNumber;
	}

	public String getFileTitle() {
		return FileTitle;
	}

	public void setFileTitle(String fileTitle) {
		FileTitle = fileTitle;
	}

	public String getUserID() {
		return UserID;
	}

	public void setUserID(String userID) {
		UserID = userID;
	}

	public String getAnimalID() {
		return AnimalID;
	}

	public String getDailyDataTip() {
		return DailyDataTip;
	}

	public void setDailyDataTip(String dailyDataTip) {
		DailyDataTip = dailyDataTip;
	}

	public void setAnimalID(String animalID) {
		AnimalID = animalID;
	}


	public void setFillingDate(Timestamp timestamp) {
		FillingDate = timestamp;
	}

	public String getFileState() {
		return FileState;
	}

	public void setFileState(String fileState) {
		FileState = fileState;
	}


	public String getFillingDate() {
		if (FillingDate == null) {
			return null;
		} else {
			String value = null;
			DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
			value = dateFormat.format(FillingDate);
			return value;
		}
	}

	public String getUserName() {
		return UserName;
	}

	public void setUserName(String userName) {
		UserName = userName;
	}

	@Override
	public String toString() {
		return "DailyBean{" +
				"FileNumber='" + FileNumber + '\'' +
				", FileTitle='" + FileTitle + '\'' +
				", UserID='" + UserID + '\'' +
				", AnimalID='" + AnimalID + '\'' +
				", FillingDate=" + FillingDate +
				", DailyDataTip='" + DailyDataTip + '\'' +
				", FileState='" + FileState + '\'' +
				'}';
	}
}
